<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>自动跳转</title>
		<style type="text/css">
			body {
				text-align: center;
			}
			span{
			   color: red;
			   font-size:35px ;
			   
			}
		</style>
	</head>

	<body>
		<h2>提交成功</h2>
		<a href="http://127.0.0.1:8020/JS/c1/c4/%E7%A7%92%E6%9D%80.html?__hbt=1528168252394">
			<span id="sec"></span>秒后系统自动跳转，也可以单击此链接跳转
		</a>

		<script>
			var t = 5;

			var span = document.getElementById('sec')

			function refer() {
				if(t > 0) {
					t--;
					span.innerHTML = t;
				} else {
					clearInterval(timer);
					location = "http://127.0.0.1:8020/JS/c1/c4/%E7%A7%92%E6%9D%80.html?__hbt=1528168252394";
				}
			}
			var timer = window.setInterval(refer, 1000);
		</script>

	</body>

</html>